package com.itzg.svn;

import java.io.File;

class FileEntry {
	private String relativePath;
	private long fileSize;
	private Branch modifiedByBranch;
	private boolean modifiedByTrunk;

	public FileEntry(File baseDir, File file) {
		relativePath = file.getAbsolutePath()
				.substring(baseDir.getAbsolutePath().length())
				.replace('\\', '/');
		fileSize = file.length();
	}

	public Branch getModifiedByBranch() {
		return modifiedByBranch;
	}

	public void setModifiedByBranch(Branch modifiedByBranch) {
		this.modifiedByBranch = modifiedByBranch;
	}

	public boolean isModifiedByTrunk() {
		return modifiedByTrunk;
	}

	public void setModifiedByTrunk(boolean modifiedByTrunk) {
		this.modifiedByTrunk = modifiedByTrunk;
	}

	public String getRelativePath() {
		return relativePath;
	}

	public long getFileSize() {
		return fileSize;
	}
}
